<?php

class tx_zboard_viewhelper_config extends tx_zlib_abstract_viewhelper
{

	public function config($key)
	{
        $conf = $this->getPi()->conf;
        if(isset($conf[$key])) {
            return $conf[$key];
        }
        $helper = $this->getHelper();
        return $helper->extConf($key);
	}

}


if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/scripts/helpers/class.tx_zboard_viewhelper_config.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/scripts/helpers/class.tx_zboard_viewhelper_config.php']);
}
